home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-10-21 | 2.0 KB | 62 lines |
- package com.symantec.itools.swing.borders;
-
- import java.beans.*;
- import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
- import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
-
- public final class LineBorderBeanInfo
- extends BorderBeanInfo
- {
- public LineBorderBeanInfo()
- {
- super();
-
- set16x16ColorIconName("LineBorder.gif");
- }
-
- protected Class getBeanClass()
- {
- return LineBorder.class;
- }
-
- public PropertyDescriptor[] getPropertyDescriptors()
- {
- try
- {
- Class beanClass = getBeanClass();
-
- PropertyDescriptor thickness = new PropertyDescriptor("thickness", beanClass);
- thickness.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.LINEBORDER_THICKNESS_HELP_ID));
-
- PropertyDescriptor lineColor = new PropertyDescriptor("lineColor", beanClass);
- lineColor.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.LINEBORDER_LINE_COLOR_HELP_ID));
-
- PropertyDescriptor roundedCorners = new PropertyDescriptor("roundedCorners", beanClass);
- roundedCorners.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.LINEBORDER_ROUNDED_CORNERS_HELP_ID));
-
- PropertyDescriptor[] rv = {
- thickness,
- lineColor,
- roundedCorners };
-
- return rv;
- }
- catch(IntrospectionException e)
- {
- e.printStackTrace();
- }
-
- //Error, return no properties
- return new PropertyDescriptor[0];
- }
-
- protected void modifyBeanDescriptor(BeanDescriptor beanDescriptor)
- {
- super.modifyBeanDescriptor(beanDescriptor);
-
- beanDescriptor.setValue("WINHELP", winHelpID);
- }
-
- protected final static String winHelpID = "0x60139";
- }
-